import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import store from './store'
import 'vue2-animate/dist/vue2-animate.min.css'
import { Message,Input,Form,FormItem,Icon,Button,Switch,Select,Option,Table,Spin,Progress,Page } from 'iview'
import 'iview/dist/styles/iview.css'
import echarts from 'echarts'
Vue.prototype.$echarts = echarts
Vue.component('Input', Input)
Vue.component('Form', Form)
Vue.component('FormItem', FormItem)
Vue.component('Icon', Icon)
Vue.component('Button', Button)
Vue.component('i-switch', Switch)
Vue.component('Select', Select)
Vue.component('Option', Option)
Vue.component('Table', Table)
Vue.component('Spin', Spin)
Vue.component('Progress', Progress)
Vue.component('Page', Page )

Vue.prototype.$Message = Message
Message.config({
  top: 200
})

Vue.config.productionTip = false

Vue.prototype.$http = axios
window.http = axios
axios.defaults.headers.post['Content-Type'] = 'application/json'

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
